//
//  DSBaseViewModel.h
//  DSJY
//
//  Created by 冯华强 on 16/10/16.
//  Copyright © 2016年 dsjy. All rights reserved.
//  父类VM

#import "GlobalHeader.h"

@interface DSBaseViewModel : NSObject

//初始化请求命令
@property (nonatomic, strong) RACCommand *requestCommand;

//创建requestCommand命令的信号
- (void)createCmdSignal:(RACDisposable * (^)(id<RACSubscriber> subscriber))didSubscribe;

///验证errorCode，如果isVerifLogin为YES 代表要进行登录状态验证
- (void)veriResponse:(YQResponse *)respone finishedCallBack:(void (^)())finishedCallBack;

//设置请求时的提示框
- (void)executingWithCommand:(RACCommand *)command;

//返回的值
@property (nonatomic, strong) YQResponse *response;

//当前页，默认1
@property (nonatomic, assign) NSInteger pageNum;
//每页显示条数，默认15
@property (nonatomic, assign) NSInteger pageCount;
//SVP延迟关闭时间，默认1.0
@property (nonatomic, assign) NSTimeInterval timeDelay;

@end
